﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Linq;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Blueprint.Domain;

namespace Blueprint.Facade
{
    public class Service : IService
    {
        public Category[] GetCategories()
        {
            using(NorthwindDataContext dc = new NorthwindDataContext())
                return dc.GetCategories();
        }

        public Category GetCategory(int categoryID)
        {
            using(NorthwindDataContext dc = new NorthwindDataContext())
                return dc.GetCategory(categoryID);
        }
    }
}
